package com.ys.entity.eKnowAi;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_eknow].[dbo].EKnow_KnowledgeBase", catalog="Id")
public class EKnowKnowledgeBase extends BaseEntity<EKnowKnowledgeBase> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="KnowledgeBaseName", nameJava="knowledgeBaseName", typeDataBase="varchar")
	private String knowledgeBaseName;
	@YsField(nameDataBase="KnowledgeBaseDescribe", nameJava="knowledgeBaseDescribe", typeDataBase="varchar")
	private String knowledgeBaseDescribe;
	@YsField(nameDataBase="UpdateUserId", nameJava="updateUserId", typeDataBase="varchar")
	private String updateUserId;
	@YsField(nameDataBase="ESIndexName", nameJava="eSIndexName", typeDataBase="varchar")
	private String eSIndexName;
	@YsField(nameDataBase="Sort", nameJava="sort", typeDataBase="int")
	private Integer sort;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public EKnowKnowledgeBase setId(Long id) {
		this.id = id;
		return this;
	}
	public String getKnowledgeBaseName() {
		return knowledgeBaseName;
	}
	public EKnowKnowledgeBase setKnowledgeBaseName(String knowledgeBaseName) {
		this.knowledgeBaseName = knowledgeBaseName;
		return this;
	}
	public String getKnowledgeBaseDescribe() {
		return knowledgeBaseDescribe;
	}
	public EKnowKnowledgeBase setKnowledgeBaseDescribe(String knowledgeBaseDescribe) {
		this.knowledgeBaseDescribe = knowledgeBaseDescribe;
		return this;
	}
	public String getUpdateUserId() {
		return updateUserId;
	}
	public EKnowKnowledgeBase setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId;
		return this;
	}
	public String getESIndexName() {
		return eSIndexName;
	}
	public EKnowKnowledgeBase setESIndexName(String eSIndexName) {
		this.eSIndexName = eSIndexName;
		return this;
	}
	public Integer getSort() {
		return sort;
	}
	public EKnowKnowledgeBase setSort(Integer sort) {
		this.sort = sort;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public EKnowKnowledgeBase setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public EKnowKnowledgeBase setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public EKnowKnowledgeBase setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static EKnowKnowledgeBase eKnowKnowledgeBase(
		String knowledgeBaseName,
		String knowledgeBaseDescribe,
		String updateUserId,
		String eSIndexName,
		Integer sort,
		Integer status
			) {
		EKnowKnowledgeBase entity = new EKnowKnowledgeBase();
		entity.setKnowledgeBaseName(knowledgeBaseName);
		entity.setKnowledgeBaseDescribe(knowledgeBaseDescribe);
		entity.setUpdateUserId(updateUserId);
		entity.setESIndexName(eSIndexName);
		entity.setSort(sort);
		entity.setStatus(status);
		return entity;
	}
}